package com.project.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * @ProjectName: 
 * @Package: 
 * @ClassName: 
 * @Author: ZhaoLongShi
 * @CreateDate: 
 */

/**
 * 评论表
 */
@Data
@TableName(value = "`comment`")
public class Comment {
    /**
     * 主键ID
     */
    @TableId(value = "comment_id", type = IdType.INPUT)
    private Integer commentId;

    /**
     * 评论用户
     */
    @TableField(value = "username")
    private String username;

    /**
     * 评论时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 评论内容
     */
    @TableField(value = "context")
    private String context;

    /**
     * 星级
     */
    @TableField(value = "star")
    private Integer star;

    /**
     * 是否删除 0 删除，1存在
     */
    @TableField(value = "is_del")
    private Integer isDel;

    public static final String COL_COMMENT_ID = "comment_id";

    public static final String COL_USERNAME = "username";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_CONTEXT = "context";

    public static final String COL_STAR = "star";

    public static final String COL_IS_DEL = "is_del";
}